#include <stdio.h>

// 判断 2010～2020 年中的哪些年份为闰年，并打印出来

/*
[2012] is leap year
[2016] is leap year
[2020] is leap year
*/

int main()
{
    int i;

    i = 2010;

    for (i; i <= 2020; i++)
    {
        if (i % 4 == 0)
        {
            printf("[%d] is leap year\n", i);
            continue;
        }
        if (i % 100 == 0)
        {
            printf("[%d] is leap year\n", i);
            continue;
        }
        if (i % 400 == 0)
        {
            printf("[%d] is leap year\n", i);
            continue;
        }
    }
}